#include "Triangle.h"

Triangle::Triangle(void)
{
	angle = 0.0f;
}

void Triangle::Process(float ms)
{
	angle += ms / 10.0f;
}

void Triangle::Render()
{
	glRotatef(angle, 0, 1, 0);

	glBegin(GL_TRIANGLES);
	glNormal3f(0, 0, -1);
	glVertex3f(-1, -1, 0);

	glNormal3f(0, 0, -1);
	glVertex3f(0, 1, 0);

	glNormal3f(0, 0, -1);
	glVertex3f(1, -1, 0);
	glEnd();
}